package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

public class ConsultRequestBody {
    @Data
    public static class AddConsultRequestBody {
        private Integer id;
        private String name;
        private String phone;
        private Integer mediaId;
        private Integer consultMethodId;
        private String content;
        private String register;
    }


    @Data
    public static class UpdateConsultRequestBody {
        private Integer id;
        private String name;
        @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date date;
        private String phone;
        private Integer mediaId;
        private Integer consultMethodId;
        private String content;
        private String register;
    }
}
